package com.campuscarbooking.api.dto.request;

import com.campuscarbooking.api.model.Reservation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "预约请求对象", description = "创建预约时的请求数据")
public class ReservationRequest {
    @ApiModelProperty(value = "班车ID", example = "1", required = true, notes = "要预约的班车ID")
    @NotNull
    private Long scheduleId;

    @ApiModelProperty(value = "座位号", example = "A1", notes = "座位号")
    private String seatNumber;

    @ApiModelProperty(value = "支付方式", example = "wechat", notes = "可选值: wechat, alipay")
    private Reservation.PaymentMethod paymentMethod;
} 